#ifndef STATEMANAGER_H
#define STATEMANAGER_H

#include <Windows.h>
#include "GameState.h"
#include "AboutState.h"

class CGameApp;

class StateManager 
{

public:
	static StateManager* GetInstance(CGameApp *game);
				
	void		Init();
	void		Update();
	void		Render();
	void		Destroy();
	void		SetNextState(GameState *nexState);


	GameState	*m_pCurrState;
	GameState	*m_pNextState;
	CGameApp	*m_pGame;


private:
	StateManager(CGameApp *game);
	static StateManager	*m_pInstance;
	
};

#endif